import request from '@/utils/request'
// -------------专家认证------------

let BASE_ADDRESS = 'work/expert'

//获取专家类型职称列表
export const getExpertOfficeListApi = (params) => {
    return request({
        url: `/base/expertOffice/list`,
        method: 'get',
        params
    })
}

//获取运营城市列表 /base/serviceCity/list
export const getServiceCityListApi = (params) =>{
    return request({
        url: `/base/serviceCity/list`,
        method: 'get',
        params
    })
}

//获取专家认证擅长领域 
export const getConsultTypeListApi = (params) => {
    return request({
        url: '/work/consultType/list',
        method: 'get',
        params
    })
}

//获取专家认证擅长领域 (去掉关闭状态的)
export const getFindConsultTypeListApi = (params) => {
    return request({
        url: '/work/consultType/findConsultTypeList',
        method: 'get',
        params
    })
}

//获取专家证书列表
export const getExpertCertificateListApi = (params) => {
    return request({
        url: '/base/expertCertificate/list',
        method: 'get',
        params
    })
}

//前台专家认证提交(添加)
export const getExpertAddApi = (data) => {
    return request({
        url: '/work/expert/add',
        method: 'post',
        data
    })
}

// id查询 专家认证信息
export const getExpertInfoApi = (params) => {
    return request({
        url: `work/expert/getInfo?id=${params}`,
        method: 'get',
    })
}

// 前台专家认证修改(重新审核)  /work/expert/edit
export const getExpertEditApi =(data) =>{
    return request({
        url: '/work/expert/edit',
        method: 'put',
        data
    })
}


// 专家列表分页查询   /work/expert/list
export const getExpertListApi = (params) => {
    return request({
        url: '/work/expert/list',
        method: 'get',
        params
    })
}

//前台删除专家认证
export const expertRemoveApi = (data) => {
    return request({
        url: '/work/expert/remove',
        method: 'delete',
        data
    })
}

//上传头像（修改头像）
export const editUserProfileAvatarApi = (data) => {
    return request({
        url: '/system/user/profile/avatar',
        method: 'post',
        data
    })
}


//重新审核
export const editUserProfileRecertificationApi = (data) => {
    return request({
        url: '/work/expert/recertification',
        method: 'put',
        data
    })
}


//专家认证信息
export const editUserProfileExpertAuthenticationApi = (params) => {
    return request({
        url: '/work/expert/expertAuthentication',
        method: 'get',
        params
    })
}

